- addOnCompleteHandler
void function(IHipAssetLoadTask task, void delegate(HipAsset) onComplete) addOnCompleteHandler;
Reserved for deferred loading.
Use it on your own risk.
- awaitLoad
void function() awaitLoad;
Stops the code from running and awaits asset manager to finish loading
- createTilemap
IHipTilemap function(uint width, uint height, uint tileWidth, uint tileHeight, bool isInfinite = false) createTilemap;
Used for creating procedurally generated Tilemap:
- getAsset
HipAsset function(string name) getAsset;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.
- getAssetsToLoadCount
int function() getAssetsToLoadCount;
Gets how many assets there is to load.
- getStringAsset
string function(string name) getStringAsset;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.
- isLoading
bool function(string file = __FILE__, uint line = __LINE__) isLoading;
Returns whether asset manager is loading anything
- loadAsset
IHipAssetLoadTask function(TypeInfo tID, string path, const(ubyte)[] extraData = null, string file = __FILE__, size_t line = __LINE__) loadAsset;
Loads any type previously registered.
Can be used for:
- IImage
- string
- IHipINI
- IHipTextureAtlas
- IHipTexture
- IHipTilemap
- IHipTileset
- IHipFont
- registerAsset
void function(TypeInfo tID, IHipAssetLoadTask delegate(string path, const(ubyte)[] extraData, string file, size_t line) assetFactory) registerAsset;
Usage Example:
registerAsset(typeid(Image), (string path, string f, size_t l) => new HipImageLoadTask(path,path,null,f,l));
- tilesetFromAtlas
IHipTileset function(IHipTextureAtlas atlas) tilesetFromAtlas;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.
- tilesetFromSpritesheet
IHipTileset function(Array2D_GC!IHipTextureRegion spritesheet) tilesetFromSpritesheet;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.